package com.foruo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;

/**
 * 程序启动类
 * @author GaoYuan
 * @date 2018/5/3 下午3:47
 */
@SpringBootApplication
@EnableAutoConfiguration
public class BaseStartApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(BaseStartApplication.class);
    }


    public static void main(String[] args){
        SpringApplication.run(BaseStartApplication.class,args);
    }

}
